package com.vector.demo.controller.teacher;

import com.vector.demo.pojo.Task;
import com.vector.demo.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.config.TaskNamespaceHandler;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

@Controller
@RequestMapping("/test")
public class test {
    @Autowired
    TaskService taskService;

    @RequestMapping("/alltask")
    public String alltask(){
        return "teacher/alltask";
    }

    @RequestMapping("/savetask")
    public String savetask(){

        return "teacher/savetask";
    }
    @RequestMapping("/publishtask")
    public String publishtask(){

        return "teacher/publishtask";
    }

    @RequestMapping("/correctTask")
    public String gaitask(){

        return "teacher/correct";
    }
    @RequestMapping("/update")
    public String update(){

        return "teacher/update";
    }

}
